import {createRouter, createWebHistory} from "vue-router";

export const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: 'Index',
            component: import('@/layout/index.vue'),
            children: [
                {
                    path: 'dashboard',
                    name: 'Dashboard',
                    component: import('@/page/dashboard/index.vue')
                }, {
                    path: 'user',
                    name: 'User',
                    component: import('@/page/website/user.vue')
                }, {
                    path: 'notice',
                    name: 'Notice',
                    component: import('@/page/website/notice.vue')
                }, {
                    path: 'feed',
                    name: 'Feed',
                    component: import('@/page/website/feed.vue')
                }, {
                    path: 'site',
                    name: 'Site',
                    component: import('@/page/website/site.vue')
                }, {
                    path: 'file',
                    name: 'File',
                    component: import('@/page/file/file.vue')
                }, {
                    path: 'real/file',
                    name: 'RealFile',
                    component: import('@/page/file/real-file.vue')
                }, {
                    path: 'order',
                    name: 'Order',
                    component: import('@/page/vip/order.vue')
                }, {
                    path: 'pay',
                    name: 'Pay',
                    component: import('@/page/vip/pay.vue')
                }, {
                    path: 'price',
                    name: 'Price',
                    component: import('@/page/vip/price.vue')
                }, {
                    path: 'vip/intro',
                    name: 'VipIntro',
                    component: import('@/page/vip/vip-intro.vue')
                }, {
                    path: 'admin/user',
                    name: 'AdminUser',
                    component: import('@/page/setting/admin-user.vue')
                }, {
                    path: 'admin/role',
                    name: 'AdminRole',
                    component: import('@/page/setting/admin-role.vue')
                }, {
                    path: 'admin/menu',
                    name: 'AdminMenu',
                    component: import('@/page/setting/admin-menu.vue')
                }, {
                    path: 'option/log',
                    name: 'OptionLog',
                    component: import('@/page/Log/option-log.vue')
                }, {
                    path: 'error/log',
                    name: 'ErrorLog',
                    component: import('@/page/Log/error-log.vue')
                }
            ]
        }
    ]
})